package hammersmith.local.valueobjects;


import java.io.Serializable;

public class Log implements Serializable {

	private static final long serialVersionUID = -4724755072498909459L;
	private Person actor;

	private Article article;

	private String timestamp;

	private int count;
	
	public String getWhat() {
		return what;
	}

	public void setWhat(String what) {
		this.what = what;
	}

	private String what;

	/*
	 * 1=erstellt
	 * 2=veraendert
	 * 3=geloescht
	 * 4=gekauft
	 */
	
	public Log(){
		
	}
	
	public Log(Person actor, Article article, String timestamp, int count, String what) {
		this.actor = actor;
		this.article = article;
		this.timestamp = timestamp;
		this.count = count;
		this.what = what;
	}

	public Person getActor() {
		return actor;
	}

	public Article getArticle() {
		return article;
	}

	public int getCount() {
		return count;
	}

	public String getTimestamp() {
		return timestamp;
	}
	public void setActor(Person actor) {
		this.actor = actor;
	}
	public void setArticle(Article article) {
		this.article = article;
	}
	public void setCount(int count) {
		this.count = count;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	// public List<Log> getLogByArticleAndDays(Article a, int days) {
	// return null;
	// }

}
